package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

/**
 * <p>Pojo mapping TABLE depotcontact</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "depotcontact")
@SuppressWarnings("serial")
public class Depotcontact implements Serializable {

	/**
	 * Attribute idDepotcontact.
	 */
	private Integer idDepotcontact;
	
	/**
	 * Attribute depot
	 */
	 private Depot depot;	

	/**
	 * Attribute dcNom.
	 */
	private String dcNom;
	
	/**
	 * Attribute dcPrenom.
	 */
	private String dcPrenom;
	
	/**
	 * Attribute dcFonction.
	 */
	private String dcFonction;
	
	/**
	 * Attribute dcTelephone.
	 */
	private String dcTelephone;
	
	/**
	 * Attribute dcTelportable.
	 */
	private String dcTelportable;
	
	/**
	 * Attribute dcTelecopie.
	 */
	private String dcTelecopie;
	
	/**
	 * Attribute dcEmail.
	 */
	private String dcEmail;
	
	private Integer idDepot;
	
	/**
	 * <p> 
	 * </p>
	 * @return idDepotcontact
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_depotcontact")
		public Integer getIdDepotcontact() {
		return idDepotcontact;
	}

	/**
	 * @param idDepotcontact new value for idDepotcontact 
	 */
	public void setIdDepotcontact(Integer idDepotcontact) {
		this.idDepotcontact = idDepotcontact;
	}
	
	/**
	 * get depot
	 */
	@ManyToOne
	@JoinColumn(name = "id_depot",insertable=false ,updatable=false)
	public Depot getDepot() {
		return this.depot;
	}
	
	/**
	 * set depot
	 */
	public void setDepot(Depot depot) {
		this.depot = depot;
	}

	/**
	 * <p> 
	 * </p>
	 * @return dcNom
	 */
	@Basic
	@Column(name = "DC_Nom", length = 45)
		public String getDcNom() {
		return dcNom;
	}

	/**
	 * @param dcNom new value for dcNom 
	 */
	public void setDcNom(String dcNom) {
		this.dcNom = dcNom;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcPrenom
	 */
	@Basic
	@Column(name = "DC_Prenom", length = 45)
		public String getDcPrenom() {
		return dcPrenom;
	}

	/**
	 * @param dcPrenom new value for dcPrenom 
	 */
	public void setDcPrenom(String dcPrenom) {
		this.dcPrenom = dcPrenom;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcFonction
	 */
	@Basic
	@Column(name = "DC_Fonction", length = 45)
		public String getDcFonction() {
		return dcFonction;
	}

	/**
	 * @param dcFonction new value for dcFonction 
	 */
	public void setDcFonction(String dcFonction) {
		this.dcFonction = dcFonction;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcTelephone
	 */
	@Basic
	@Column(name = "DC_Telephone", length = 21)
		public String getDcTelephone() {
		return dcTelephone;
	}

	/**
	 * @param dcTelephone new value for dcTelephone 
	 */
	public void setDcTelephone(String dcTelephone) {
		this.dcTelephone = dcTelephone;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcTelportable
	 */
	@Basic
	@Column(name = "DC_TelPortable", length = 21)
		public String getDcTelportable() {
		return dcTelportable;
	}

	/**
	 * @param dcTelportable new value for dcTelportable 
	 */
	public void setDcTelportable(String dcTelportable) {
		this.dcTelportable = dcTelportable;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcTelecopie
	 */
	@Basic
	@Column(name = "DC_Telecopie", length = 21)
		public String getDcTelecopie() {
		return dcTelecopie;
	}

	/**
	 * @param dcTelecopie new value for dcTelecopie 
	 */
	public void setDcTelecopie(String dcTelecopie) {
		this.dcTelecopie = dcTelecopie;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dcEmail
	 */
	@Basic
	@Column(name = "DC_EMail", length = 70)
		public String getDcEmail() {
		return dcEmail;
	}

	/**
	 * @param dcEmail new value for dcEmail 
	 */
	public void setDcEmail(String dcEmail) {
		this.dcEmail = dcEmail;
	}

	public void setIdDepot(Integer idDepot) {
		this.idDepot = idDepot;
	}

	@Basic
	@Column(name = "id_depot")
	public Integer getIdDepot() {
		return idDepot;
	}
	


}